package com.ruoyi.project.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 t_order
 *
 * @author ruoyi
 * @date 2020-05-11
 */
public class TOrder extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/** 主键 */
	private Long id;
	/** 订单号 */
	private String orderNo;

	/** t_drugs表id */
	@Excel(name = "t_drugs表id")
	private Long drugsId;

	/** 数量 */
	@Excel(name = "数量")
	private Long number;

	/** 用户ID */
	@Excel(name = "用户ID")
	private Long userId;

	/** 订单价格 */
	@Excel(name = "订单价格")
	private BigDecimal orderPrice;

	/** 状态：0-已下单确认，1-配送，2-完成 */
	@Excel(name = "状态：0-已下单确认，1-配送，2-完成")
	private String state;

	/** 状态：0有效，1无效 */
	@Excel(name = "状态：0有效，1无效")
	private String flag;

	/** 创建时间 */
	@JsonFormat(pattern = "yyyy-MM-dd")
	@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
	private Date createDate;

	/** 修改时间 */
	@JsonFormat(pattern = "yyyy-MM-dd")
	@Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
	private Date updateDate;

	/** 创建人 */
	@Excel(name = "创建人")
	private String createUser;

	/** 修改人 */
	@Excel(name = "修改人")
	private String updateUser;

	//订单详细信息
	private List<TDrugs> drugsList;
	private String shopCardId;
	//订单备注
	private String remark;
	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public void setDrugsId(Long drugsId) {
		this.drugsId = drugsId;
	}

	public Long getDrugsId() {
		return drugsId;
	}

	public void setNumber(Long number) {
		this.number = number;
	}

	public Long getNumber() {
		return number;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getUserId() {
		return userId;
	}


	public BigDecimal getOrderPrice() {
		return orderPrice;
	}

	public void setOrderPrice(BigDecimal orderPrice) {
		this.orderPrice = orderPrice;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getState() {
		return state;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public String getFlag() {
		return flag;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public String getUpdateUser() {
		return updateUser;
	}

	public List<TDrugs> getDrugsList() {
		return drugsList;
	}

	public void setDrugsList(List<TDrugs> drugsList) {
		this.drugsList = drugsList;
	}

	public String getShopCardId() {
		return shopCardId;
	}

	public void setShopCardId(String shopCardId) {
		this.shopCardId = shopCardId;
	}

	@Override
	public String getRemark() {
		return remark;
	}

	@Override
	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
				.append("id", getId()).append("drugsId", getDrugsId())
				.append("number", getNumber()).append("userId", getUserId())
				.append("state", getState()).append("flag", getFlag())
				.append("createDate", getCreateDate())
				.append("updateDate", getUpdateDate())
				.append("createUser", getCreateUser())
				.append("updateUser", getUpdateUser())
				.append("shopCardId",getShopCardId())
				.append("remark",getRemark()).toString();
	}
}
